<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:pe="http://primefaces.org/ui/extensions">

<h:head>
</h:head>

<h:body>
    <composite:interface>
        <composite:attribute name="nodeVar" required="true" type="md.mru.core.dtos.TreeNodeModelDto"/>
        <composite:attribute name="forId" required="true"/>
    </composite:interface>

    <composite:implementation>
        <p:outputPanel layout="block">
            <h:outputText id="#{cc.attrs.forId}" value="#{cc.attrs.nodeVar.name}" styleClass="tree-node-label"/>
            <pe:tooltip for="#{cc.attrs.forId}">
                <div>
                    <h:outputText value="Descriere:" style="font-weight: bold;"/>
                    <h:outputText value="#{cc.attrs.nodeVar.description == null ? '- - - -' : cc.attrs.nodeVar.description}"/>
                </div>
                <div>
                    <h:outputText value="Telefon:  " style="font-weight: bold;"/>
                    <h:outputText value="#{cc.attrs.nodeVar.phoneNo == null ? '- - - -' : cc.attrs.nodeVar.phoneNo}"/>
                </div>
            </pe:tooltip>
        </p:outputPanel>
    </composite:implementation>
</h:body>
</html>